home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam02
/
main.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-27
|
1KB
|
92 lines
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/
#include "generics.h"
main(int argc, char *argv[])
{
/* Declare a Dynace object */
object myObj;
InitDynace(&argc);
/* Create a new instance of class ShortInteger initialized to 6 */
myObj = gNewWithInt(ShortInteger, 6);
/* Tell the object to print itself on stdout */
gPrint(myObj, stdoutStream);
/* Change the value contained in the object */
gChangeShortValue(myObj, 77);
/* Tell the object to print itself again */
gPrint(myObj, stdoutStream);
/* When an object is no longer needed it should be disposed of,
returning its memory to the heap. (This would be done
automatically if the garbage collector was enabled.) */
gDispose(myObj);
return 0;
}
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/